package com.shtel.bss.saas.tenant.mapper;

import com.shtel.bss.saas.core.data.common.mapper.IBaseMapper;
import org.springframework.stereotype.Repository;
import  com.shtel.bss.saas.tenant.entity.SysGlobalAuth;
import org.springframework.stereotype.Repository;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * sys_global_auth mapper
 * @author xiezhiwei 2020-02-05 21:29
 */
@Repository
public interface SysGlobalAuthMapper extends IBaseMapper<SysGlobalAuth> {
    /**
     * 查询基础权限
     * @param sysGlobalAuth
     * @return
     */
    List<SysGlobalAuth> selectEntity(SysGlobalAuth sysGlobalAuth);

    void updateEntity(SysGlobalAuth sysGlobalAuth);

    List<SysGlobalAuth> selectEntityByTenantId(@Param(value = "tenantId") Long tenantId);
}